package com.meng.a_controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


/**
 *
 * 错误Controller
 *
 * @author MENG
 * @version 2017/12/18
 * @see
 */
@Controller
@RequestMapping("err")
public class ErrorController
{

    @RequestMapping("404")
    public ModelAndView getErrorPage404()
    {
        return new ModelAndView("/common/404");
    }

    @RequestMapping("500")
    public ModelAndView getErrorPage500()
    {
        return new ModelAndView("/common/500");
    }

    @RequestMapping("401")
    public ModelAndView getErrorPage401()
    {
        return new ModelAndView("/common/401");
    }

}
